package pt.iscte.poo.tabular;
import pt.iscte.poo.tabularinterface.TabularStructure;


public class JogoDoGalo implements TabularStructure {

	private static final int NUMBER_OF_LINES = 3;
	private static final int NUMBER_OF_COLUMNS = 3;
	private char[][] board = new char[NUMBER_OF_LINES][NUMBER_OF_COLUMNS];
	
	@Override
	public int numberOfLines() {
		return NUMBER_OF_LINES;
	}

	@Override
	public int numberOfColumns() {
		return NUMBER_OF_COLUMNS;
	}

	@Override
	public String getElement(int line, int column) {
		return String.valueOf(board[line][column]);
	}

	public void jogada(char c, int i, int j) {
		board[i][j] = c;
	}

}
